﻿@{
    ViewBag.Title = "UpdateInfoList";
}

@section scripts
{   
    <script src="@Url.Content("~/Scripts/shared/share.js")" type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/shared/shown.js")" type="text/javascript"></script>
}
        @Html.Partial("~/Views/Modular/Tool.cshtml")
        @Html.Partial("~/Views/Modular/SearchInfo.cshtml")
        <div class="mini-fit">
            <div id="datagrid1" class="mini-datagrid" style="width:100%;height:100%;" pageSize="15"
                    borderStyle="border:1;" url="GetList" sortMode="client" onrowdblclick="showInfo">
                <div property="columns">
                    <div type="checkcolumn" >选行</div>
                    <div type="indexcolumn" width="40" headerAlign="center" >序号</div>
                    <div field="FCreateTime" name="FCreateTime" width="100" headeralign="center" dateformat="yyyy-MM-dd HH:mm:ss">日期</div>
                    <div field="FTitle" name="FTitle" width="750" headeralign="center" allowsort="true">标题名称</div>
                </div>
            </div>
        </div>

<script>
    function FormShown() {
        mini.parse();
        LoadListData();
    }

    function setkeyPress() {
        LoadListData();
    }

    //加载资料列表
    function LoadListData() {
        var sSystemAppID = parent.window.getSystemAppID();
        var json = "[{";
        json = json + "'search':" + "'" + mini.getbyName("FSearchKey").getValue() + "',";
        json = json + "'release':1";
        json = json + "}]";
        var grid = mini.get("datagrid1");
        grid.load({mjson:json});
    }

    //搜索资料列表
    function search() {
        LoadListData();
    }

    //刷新
    function refresh() {
        LoadListData();
    }

    function showInfo() {
        var grid = mini.get("datagrid1");
        var row = grid.getSelected();
        if (row) {
            mini.open({
                url: "/updateinfo/notify?FItemID="+row.FItemID,
                title: "升级公告", width: 800, height: 500,
                onload: function () {
                }
            });
        }
    }
</script>
